package com.demo.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.demo.core.dao.WebDao;

@Transactional
@Service
public class WebService {

	@Autowired
	private WebDao webDao;
	
	/**
	 * 验证手机的唯一
	 * @param tel
	 * @return
	 */
	public boolean validatePhone(String tel){
		
		return webDao.validatePhone(tel);
	}
	
	/**
	 * 检测网上用户（个人）是否已经注册
	 * @param loginName
	 * @return
	 */
	public boolean validateLoginNameByPerson(String loginName){
		
		return webDao.validateLoginNameByPerson(loginName);
	}
}
